/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.ADP.conform.Mail.Impl;

import za.ac.cput.ADP.Conform.Mail.Mail;



/**
 *
 * @author Oceanwave
 */
public class MailImp implements Mail
{
    String subject, date, sender, reciever;
    int stampValue;
     boolean certifiable;

    public MailImp(String subject, String date, String reciever, int stampValue) 
    {
        this.subject = subject;
        this.date = date;
        this.reciever = reciever;
        this.stampValue = stampValue;
    }
   
    @Override
    public void setCertified() 
    {
        certifiable = true;
    }

    @Override
    public void setUncertified() 
    {
        certifiable = false;
    }
    
    @Override
    public boolean getCertifiable()
    {
        return certifiable;
    }

    @Override
    public double determineStampValue() 
    {
        return stampValue;
    }
    
    @Override
    public void setSender(String name, String surname)
    {
        sender = name + " " + surname; 
    }
    
    @Override
    public void printReport()
    {
        System.out.println("Subject: " + subject + "\nDate: " + date + "\nSender: " + sender + "\nReciever: " + reciever + "\nStamp Value: " + stampValue);
    }

}
